<?php

namespace App\Models\Project;

use App\Models\User;
use Illuminate\Database\Eloquent\SoftDeletes;

class ContractLog extends Base
{

    protected $table = 'pm_contract_logs';

    protected $fillable = [
        'contract_id',
        'title',
        'remark',
        'operator_uid',
    ];
    public function operator()
    {
        return $this->belongsTo(User::class, 'operator_uid')->withDefault(['id' => 0, 'name' => '']);
    }
}
